JavaScript Testing with Jasmine: JavaScript Behavior-Driven Development (Paperback)

JavaScript Testing with Jasmine: JavaScript Behavior-Driven Development (Paperback)

作者: Evan Hahn
出版社: O'Reilly
出版在: 2013-04-23
ISBN-13: 9781449356378
ISBN-10: 1449356370
裝訂格式: Paperback
總頁數: 54 頁





內容描述


Get a concise introduction to Jasmine, the popular behavior-driven testing framework for JavaScript. This practical guide shows you how to write unit tests with Jasmine that automatically check for bugs in your application. Learn how to write specifications for individual components, and then use those specs to test the code you write.Throughout the book, author Evan Hahn focuses primarily on methods for testing browser-based JavaScript applications, but you’ll also discover how to use Jasmine with CoffeeScript, Node.js, Ruby on Rails, and Ruby without Rails. You won’t find a more in-depth source for Jasmine anywhere.Get an overview of both test-driven and behavior-driven development Write useful specs by determining what you need to test—and what you don’t Test the behavior of new and existing code against the specs you create Apply Jasmine matchers and discover how to build your own Organize code suites into groups and subgroups as your code becomes more complex Use a Jasmine spy in place of a function or an object—and learn why it’s valuable




相關書籍

人工智能技術與大數據

作者 Anand Deshpande Manish Kumar 趙運楓 黃偉哲譯

2013-04-23

jQuery EasyUI 開發指南

作者 王波

2013-04-23

JavaScript Patterns (Paperback)

作者 Stoyan Stefanov

2013-04-23